﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PhotoGames
{
    public partial class StarterForm : Form
    {
        public StarterForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Common.Resource resource = new Common.Resource();
            resource.Levels = 4;
            Fifteen.TLayout layout = new Fifteen.TLayout(4, 4, resource.GetBitmap("NisseFifteen.png", "images"));
            layout.CreateRandom();

            Fifteen.FifteenForm form = new Fifteen.FifteenForm(layout);
            form.ShowDialog(this);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Memory.MemoryForm form = new Memory.MemoryForm();
            form.ShowDialog(this);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Maze.MazeForm form = new Maze.MazeForm(Maze.Level.Create());
            form.ShowDialog(this);
        }
    }
}
